//-----------------------------------------------------------------------
// <copyright file="a_AddresseService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_AddresseService
    {
        #region a_Addresse

        public static void Createa_Addresse(a_Addresse a_Addresse)
        {            
            try
            {
                a_AddresseDAO a_AddresseDAO = new a_AddresseDAO();
                a_AddresseDAO.Createa_Addresse(a_Addresse);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Addresse(a_Addresse a_Addresse)
        {            
            try
            {
                a_AddresseDAO a_AddresseDAO = new a_AddresseDAO();
                a_AddresseDAO.Updatea_Addresse(a_Addresse);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Addresse(int addrID)
        {            
            try
            {
                a_AddresseDAO a_AddresseDAO = new a_AddresseDAO();
                a_AddresseDAO.Deletea_Addresse(addrID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Addresse Geta_Addresse(int addrID)
        {            
            try
            {
                a_AddresseDAO a_AddresseDAO = new a_AddresseDAO();
                return a_AddresseDAO.Geta_Addresse(addrID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_AddresseCollection Geta_AddresseList(a_AddresseColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_AddresseDAO a_AddresseDAO = new a_AddresseDAO();
                return a_AddresseDAO.Geta_AddresseList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_AddresseCollection Geta_AddresseList(a_AddresseColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_AddresseDAO a_AddresseDAO = new a_AddresseDAO();
                return a_AddresseDAO.Geta_AddresseList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}